package com.benshou.bsoa.controller.yida;


import com.benshou.bsoa.common.dto.ResponseVo;
import com.benshou.bsoa.dto.yida.req.YiDaReq;
import com.benshou.bsoa.service.yida.SynchronousProjectAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/v1/yida")
public class CostAnalysisController{

    @Autowired
    private SynchronousProjectAnalysisService synchronousProjectAnalysis;


    /*
     * 项目台账数据同步
     */

    @PostMapping("/synchronousProjectAnalysis")
    public ResponseVo synchronousProject(@RequestBody YiDaReq yiDaReq) throws Exception {
        return ResponseVo.success(synchronousProjectAnalysis.synchronousProjectAnalysisService(yiDaReq));
    }
}
